#!/bin/sh
#desc:Local drives
#type:local

cd /mnt
echo "list:`basename $0`"
for i in *; do
	if test "$i" != "odconf"; then
		if test -f /mnt/$i/opendomo.cfg; then
			. /mnt/$i/opendomo.cfg
			if test -z "$LABEL"; then
				LABEL="$i"
			fi
		fi
		echo "	-$i	$LABEL	drive"	
	fi
done
echo "actions:"
echo "	setDriveSettings.sh	Configure drive"
echo "	selectStorageDrive.sh	Set as a storage drive"
echo 
